//
//  CourseDetailViewController.h
//  TMS
//
//  Created by Riddhi Joshi on 23/01/15.
//  Copyright (c) 2015 Riddhi Joshi. All rights reserved.
//

#import <UIKit/UIKit.h>
#import "TraineeCourseTable.h"
#import "CourseTable.h"

@protocol CourseViewControllerDelegate

-(void)approvingCourseInfoWasFinished;

@end


@interface CourseDetailViewController : UIViewController <UIAlertViewDelegate>

@property (strong, nonatomic) IBOutlet UILabel *CourseName; //for Course name

@property (strong, nonatomic) IBOutlet UITextView *DescriptionTextView; //for description of text

@property (strong, nonatomic) IBOutlet UILabel *CoursePlatform;// for Course platform

@property (strong, nonatomic) IBOutlet UIButton *Accept;// for accept button

@property (strong, nonatomic) IBOutlet UIButton *Reject; //for reject button

@property (assign) int recordIDToDisplay;// course id to be displayed

@property (assign) int TraineeId; // respective trainee id

@property (assign) int StatusId; // respective status id

@property (strong) TraineeCourseTable *TraineeCourseTable; //for accept reject actions

@property (strong)  CourseTable *CourseTable; //for course display

- (IBAction)onAcceptClicked:(id)sender; //onclick of accept button

- (IBAction)onRejectClicked:(id)sender; //onclick of reject button

@property (nonatomic, strong) id<CourseViewControllerDelegate> delegate;

@end
